﻿@using Web.Infrastructure.Mvc.FileUpload
@Html.TextArea("")
@{
    var useSimple = ViewData.ModelMetadata.AdditionalValues.ContainsKey("useSimple")
        ? (bool)ViewData.ModelMetadata.AdditionalValues["useSimple"] : false;
}
<script type="text/javascript">
    var editor;
    KindEditor.ready(function (K) {
        editor = K.create('textarea[name="@Html.IdForModel()"]', {
            resizeType: 1,
            allowPreviewEmoticons: false,
            allowImageUpload: true,
            uploadJson: '@UploadManager.UploadUrl',
            formatUploadUrl: false,
            allowFileManager: false

            }
        });
    });
</script>